<div class="jrsq-big">
  <!--<nz-carousel nzAutoPlay>
    <div nz-carousel-content *ngFor="let item of jrsqData">
      <div class="total" *ngIf="item.name">
        <span class="text">{{ item.name }}</span>
        <span class="value">{{ item.flow }}</span>
      </div>
      <div class="others">
        <div *ngFor="let child of item.children">
          <span class="text">{{child.name}}</span>
          <span class="value">{{child.flow}}</span>
        </div>
      </div>
    </div>
  </nz-carousel>-->

  <ng-container *ngIf="jrsqType==1">
<!--    <div class="btn-wrap">
      <button class="btn-1" nz-button nzType="default" (click)="jrsqType=2">切换表格</button>
    </div>-->

    <div class="data-list">
      <div class="row" *ngFor="let item of jrsqData;let i = index">
        <ng-container *ngIf="i==0">
          <div class="total" *ngIf="item.name">
            <span class="text">{{ item.name }}:</span>
            <div class="value">
              <!--<span class="value">{{item.flow}}</span>-->
              <div class="inner-wrap" [ngClass]="{'update': item.flow !== item.newflow, 'T0': item.flow == item.newflow}">
                <label style="display: block">{{ item.flow }}</label>
                <label style="display: block">{{item.newflow}}</label>
              </div>
            </div>
          </div>
          <div *ngFor="let child of item.children">
            <span class="text">{{child.name}}:</span>
            <div class="value">
              <div class="inner-wrap" [ngClass]="{'update': child['flow'] !== child['newflow'], 'T0': item.flow == item.newflow}">
                <label style="display: block">{{ child['flow'] }}</label>
                <label style="display: block">{{child['newflow']}}</label>
              </div>
            </div>
          </div>
        </ng-container>
        <ng-container *ngIf="i>0">
          <div *ngFor="let child of item.children">
            <div class="value">
              <div class="inner-wrap2" [ngClass]="{'update2': child['flow'] !== child['newflow'], 'T0': item.flow == item.newflow}">
                <label style="display: block">{{ child['flow'] }}</label>
                <label style="display: block">{{child['newflow']}}</label>
              </div>
            </div>
            <div class="text">{{child.name|| child['NAME']}}</div>
          </div>
          <div *ngFor="let b of item.blank"></div>
        </ng-container>
      </div>
    </div>
  </ng-container>

  <ng-container *ngIf="jrsqType==2">

    <button class="btn-2" nz-button nzType="default" (click)="jrsqType=1">返回</button>

    <iframe [src]="jrsqReportSrc" frameborder="0" style="height: 780px;width: 100%"></iframe>
  </ng-container>


</div>
